home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Rozne / HTTrack 3.40-2 / httrack-3.40-2.exe / {app} / src_win / WinHTTrack / WinHTTrackView.cpp < prev    next >
C/C++ Source or Header  |  2000-04-24  |  2KB  |  82 lines

  1. // WinHTTrackView.cpp : implementation of the CWinHTTrackView class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "WinHTTrack.h"
  6.  
  7. #include "WinHTTrackDoc.h"
  8. #include "WinHTTrackView.h"
  9.  
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CWinHTTrackView
  18.  
  19. IMPLEMENT_DYNCREATE(CWinHTTrackView, CView)
  20.  
  21. BEGIN_MESSAGE_MAP(CWinHTTrackView, CView)
  22.     //{{AFX_MSG_MAP(CWinHTTrackView)
  23.         // NOTE - the ClassWizard will add and remove mapping macros here.
  24.         //    DO NOT EDIT what you see in these blocks of generated code!
  25.     //}}AFX_MSG_MAP
  26. END_MESSAGE_MAP()
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CWinHTTrackView construction/destruction
  30.  
  31. CWinHTTrackView::CWinHTTrackView()
  32. {
  33.     // TODO: add construction code here
  34.  
  35. }
  36.  
  37. CWinHTTrackView::~CWinHTTrackView()
  38. {
  39. }
  40.  
  41. BOOL CWinHTTrackView::PreCreateWindow(CREATESTRUCT& cs)
  42. {
  43.     // TODO: Modify the Window class or styles here by modifying
  44.     //  the CREATESTRUCT cs
  45.  
  46.     return CView::PreCreateWindow(cs);
  47. }
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CWinHTTrackView drawing
  51.  
  52. void CWinHTTrackView::OnDraw(CDC* pDC)
  53. {
  54.     CWinHTTrackDoc* pDoc = GetDocument();
  55.     ASSERT_VALID(pDoc);
  56.     // TODO: add draw code for native data here
  57. }
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60. // CWinHTTrackView diagnostics
  61.  
  62. #ifdef _DEBUG
  63. void CWinHTTrackView::AssertValid() const
  64. {
  65.     CView::AssertValid();
  66. }
  67.  
  68. void CWinHTTrackView::Dump(CDumpContext& dc) const
  69. {
  70.     CView::Dump(dc);
  71. }
  72.  
  73. CWinHTTrackDoc* CWinHTTrackView::GetDocument() // non-debug version is inline
  74. {
  75.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CWinHTTrackDoc)));
  76.     return (CWinHTTrackDoc*)m_pDocument;
  77. }
  78. #endif //_DEBUG
  79.  
  80. /////////////////////////////////////////////////////////////////////////////
  81. // CWinHTTrackView message handlers
  82.